<template>
  <div>
    <button @click="getMock">点击</button>
  </div>
</template>
<script>
import axios  from "axios";
export default {
  methods:{
    getMock(){
      axios.get('/user/userInfo').then(res=>{
        console.log(res)
      })
    }
  }

}

</script>
<style lang="scss" scoped>

</style>